package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.util.Date;

/**
 * 冷藏临时出藏记录表Entity
 * 
 * @author generator
 * @date 2020-08-23 18:11
 */
@MyTable(value = "ColdStorageTempEntity", name = "cold_storage_temp", comment = "冷藏临时出藏记录表")
public class ColdStorageTempEntity extends BaseEntity {
    /**
     * 业务编码
     */
    @MyColumn(value = "businessCode", name = "business_code", comment = "业务编码", required = true)
    private String businessCode;

    /**
     * 冷藏外键
     */
    @MyColumn(value = "coldStorageId", name = "cold_storage_id", comment = "冷藏外键")
    private Integer coldStorageId;

    /**
     * 临时去向编码
     */
    @MyColumn(value = "tempWhereaboutsCode", name = "temp_whereabouts_code", comment = "临时去向编码", required = true)
    private Integer tempWhereaboutsCode;

    /**
     * 临时出藏时间
     */
    @MyColumn(value = "tempOutTime", name = "temp_out_time", comment = "临时出藏时间")
    private Date tempOutTime;

    /**
     * 临时出藏返回时间
     */
    @MyColumn(value = "tempReturnTime", name = "temp_return_time", comment = "临时出藏返回时间")
    private Date tempReturnTime;

    /**
     * 是否已返回
     */
    @MyColumn(value = "asReturned", name = "as_returned", comment = "是否已返回", required = true)
    private Integer asReturned;

    /**
     * 随机码
     */
    @MyColumn(value = "randomCode", name = "random_code", comment = "随机码")
    private String randomCode;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;


    public String getBusinessCode() {
        return businessCode;
    }

    public ColdStorageTempEntity setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public Integer getColdStorageId() {
        return coldStorageId;
    }

    public ColdStorageTempEntity setColdStorageId(Integer coldStorageId) {
        this.coldStorageId = coldStorageId;
        return this;
    }

    public Integer getTempWhereaboutsCode() {
        return tempWhereaboutsCode;
    }

    public ColdStorageTempEntity setTempWhereaboutsCode(Integer tempWhereaboutsCode) {
        this.tempWhereaboutsCode = tempWhereaboutsCode;
        return this;
    }

    public Date getTempOutTime() {
        return tempOutTime;
    }

    public ColdStorageTempEntity setTempOutTime(Date tempOutTime) {
        this.tempOutTime = tempOutTime;
        return this;
    }

    public Date getTempReturnTime() {
        return tempReturnTime;
    }

    public ColdStorageTempEntity setTempReturnTime(Date tempReturnTime) {
        this.tempReturnTime = tempReturnTime;
        return this;
    }

    public Integer getAsReturned() {
        return asReturned;
    }

    public ColdStorageTempEntity setAsReturned(Integer asReturned) {
        this.asReturned = asReturned;
        return this;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public ColdStorageTempEntity setRandomCode(String randomCode) {
        this.randomCode = randomCode;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ColdStorageTempEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}